import request from '@/utils/request'

//! 数据渲染
export function getBuildingAPI(params) {
  return request({
    url: '/park/building',
    method: 'GET',
    params
  })
}

//! 新增数据
export function addBuildingAPI(data) {
  return request({
    url: '/park/building',
    method: 'POST',
    data
  })
}

//! 查询数据
export function inquireBuildingAPI(id) {
  return request({
    url: `/park/building/${id}`
  })
}

// ! 编辑数据
export function editBuildingAPI(data) {
  return request({
    url: '/park/building',
    method: 'PUT',
    data
  })
}
//! 删除接口
export function romoveBuildingDetaAPI(id) {
  return request({
    url: `/park/building/${id}`,
    method: 'DELETE'
  })
}
